<?php 
namespace app\model;
use think\Model;

class Admin extends Model
{	

	public static function getRoleCn($key){
		$list = ['管理员'];
		return $list[$key];
	}

	public static function getRoleList(){
		$list = ['管理员'];
		return $list;
	}

    public static function mylist($map=[]){
        $list = self::field('id,account,truename')->where($map)->select();
        return $list;
    }

    public static function getCommonIsCn($key){
        $list = [1=>'是',0=>'否'];
        return $list[$key];
    }

    public static function getCommonIsList(){
        $list = [1=>'是',0=>'否'];
        return $list;
    }
	
}


 ?>